package com.example.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.framwork.haoframwork.R;
import com.example.mvp.bean.CatalogEntity;

import java.util.List;

public class MainAdapter extends BaseQuickAdapter<CatalogEntity.ResultDTO, BaseViewHolder> {

    public MainAdapter(int layoutResId, @Nullable List<CatalogEntity.ResultDTO> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CatalogEntity.ResultDTO bean) {
       helper.setText(R.id.tv_item_name,bean.getCatalog());
    }
}
